package aad.storyboard.controller;

import java.util.ArrayList;
import java.util.HashMap;

import aad.storyboard.model.Image;
import aad.storyboard.model.TransitionCommand;
import android.view.View;
import android.widget.RelativeLayout;

/**
 * Command pattern: will be triggered by the TransitionProvider 
 */
public abstract class Transition implements TransitionCommand{	
	
	protected int startTime;
	protected long duration;
	protected View current;
	protected View next;
	
	protected ArrayList<Image> images;
	
	public void addImage(Image go){		
		this.images.add(go);
	}
	
	public ArrayList<Image> getImages(){
		return this.images;
	}
	
	
	protected boolean started = false;
	
	public Transition(int start, long duration)
	{
		this.startTime=start;
		this.duration=duration;
		images=new ArrayList <Image>();
	}
	
	public boolean isStarted() {
		return started;
	}

	public void setStarted(boolean started) {
		this.started = started;
	}	
	
	public int getTime() {
		return startTime;
	}

	public void setTime(int time) {
		this.startTime = time;
	}
	
	public void setCurrent (View current)
	{
	 this.current=current;
	}
	

}
